package com.lyw.enums;

public enum DuplicateNameEnum {
  JJC("寂静城", 0);
  private String name;
  private int code;

  DuplicateNameEnum(String name, int code) {
    this.name = name;
    this.code = code;
  }

  public boolean equals(DuplicateNameEnum duplicateName) {
    return this.code == duplicateName.code && this.name.equalsIgnoreCase(duplicateName.name);
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getCode() {
    return code;
  }

  public void setCode(int code) {
    this.code = code;
  }
}
